package model

type MbtiQuestion struct {
	QuestionId   int    `json:"questionId"  gorm:"primary_key;autoIncrement:true"`
	QuestionType int    `json:"questionType"`
	KindDesc     string `json:"kindDesc"`
	QuestionDesc string `json:"questionDesc"`
	Options      string `json:"options"`
}

func (MbtiQuestion) TableName() string {
	return "mbti_question"
}

type MbtiResult struct {
	Id        int    `json:"id"  gorm:"primary_key;autoIncrement:true"`
	Username  string `json:"username"`
	MbtiKind  string `json:"mbtiKind"`
	StartTime string `json:"startTime"`
	TimeCost  int    `json:"timeCost"`
}

func (MbtiResult) TableName() string {
	return "mbti_result"
}

type MbtiAnswer struct {
	MbtiKind    int    `json:"id"  gorm:"primary_key;autoIncrement:true"`
	MbtiName    string `json:"username"`
	MbtiContent string `json:"mbtiContent"`
	MbtiOrder   string `json:"mbtiOrder"`
	MbtiLeader  string `json:"mbtiLeader"`
	MbtiStudy   string `json:"mbtiStudy"`
	MbtiProblem string `json:"mbtiProblem"`
	MbtiWork    string `json:"mbtiWork"`
	MbtiShort   string `json:"mbtiShort"`
	MbtiDevelop string `json:"mbtiDevelop"`
	MbtiField   string `json:"mbtiField"`
	MbtiCareer  string `json:"mbtiCareer"`
}

func (MbtiAnswer) TableName() string {
	return "mbti_answer"
}
